package com.yb.flowable.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author biaoyang
 * @Date
 */
@Setter
@Getter
@ApiModel(description = "精简版用户请假信息类")
public class VacationInfo {

    @ApiModelProperty("请假理由")
    @NotBlank(message = "请假理由不能为空")
    @Length(max = 200, message = "请假理由不能超过200字")
    private String reason;

    @ApiModelProperty("请假天数")
    @NotNull(message = "请假天数不能为空")
    @Min(value = 0, message = "请正确填写请假时间")
    @Max(value = 5, message = "请假不能超多5天")
    private double days;

}
